//
//  UIColor+GWGradient.h
//  shandsHotel
//
//  Created by zh_s on 2018/9/25.
//  Copyright © 2018年 zh_s. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIColor (GWGradient)
+ (CAGradientLayer *)setGradualChangingColor:(UIView *)view fromColor:(NSString *)fromHexColorStr toColor:(NSString *)toHexColorStr;

+ (UIColor *)colorWithHexString:(NSString *)color alpha:(CGFloat)alpha;

//从左到右渐变
+ (CAGradientLayer *)getLeftWithRightGradualChangingColorWithViewBounds:(CGRect)viewBounds fromColor:(UIColor *)fromHexColorStr toColor:(UIColor *)toHexColorStr;
//从左到右渐变
+ (CAGradientLayer *)setLeftWithRightGradualChangingColor:(UIView *)view fromColor:(NSString *)fromHexColorStr toColor:(NSString *)toHexColorStr;
//从右到左渐变
+ (CAGradientLayer *)setRightWithGraLeftdualChangingColor:(UIView *)view fromColor:(NSString *)fromHexColorStr toColor:(NSString *)toHexColorStr;

@end
